<form id="modifica_gallery" name="modifica_gallery" method="POST">
<table cellspacing=0 cellpadding=0 border=0>
	<tr><td height=20 colspan=2><input type="hidden" name="id_gallery" value="<?php echo $gallery['id']; ?>"></td></tr>
	<tr>
		<td class="titolo_mess" width="120">Nome gallery : </td>
		<td><input type="text" value="<?php echo $gallery['nome'];?>" name="nome_gallery" id="campo_nome_gallery" class="ui-widget">
	</tr>
	<tr><td height=20 colspan=2></td></tr>
	<tr>	
		<td class="titolo_mess" width="120">Permessi : </td>
		<td><select name="permessi_gallery" class="ui-widget">
		<?php
		$arr_permessi['1'] = 'Visibile a tutti';
		$arr_permessi['2'] = 'Visibile solo agli amici';
		$arr_permessi['3'] = 'Visibile solo a te';
		foreach($arr_permessi as $key => $value){
			$sel = "";
			if($gallery['permessi']==$key)$sel = " selected";
			
			echo "<option value=\"$key\" $sel>$value</option>";
		}
		?>
		</select></td>
	<tr>
	<tr><td height=20 colspan=2></td></tr>
	</tr>
		<td >
		<td><input id="bottone_modifica_gallery" type="button" onclick="gallery.modifica_gallery_db();" style="font-size: 9pt;"  value="Modifica Gallery"></td>
	</tr>
	<tr><td height=20 colspan=2></td></tr>
</table>
</form>
